home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Applications
/
Graphics
/
Sphere
/
Source
/
SphereView.m
< prev
next >
Wrap
Text File
|
1991-07-13
|
503b
|
29 lines
/* Generated by Interface Builder */
#import "SphereView.h"
#import "SphereControl.h"
#import "SphereDrawerObject.h"
#import <appkit/appkit.h>
#import <dpsclient/wraps.h>
@implementation SphereView
- initFrame:(const NXRect *)r
{
[super initFrame:r];
return self;
}
- drawSelf:(const NXRect *)r: (int)c;
{
if ([sphereControlPtr readShadeFlag]) PSsetgray(0.333);
else PSsetgray(1.0);
NXRectFill(r);
PSsetgray(0.0);
NXFrameRect(r);
[sphereDrawerObjectPtr computeSphere];
return self;
}
@end